﻿<%@ Page Title="" Language="C#" MasterPageFile="~/AdminSite/AdminSite.Master" AutoEventWireup="true"
    CodeBehind="ClaimReport.aspx.cs" Inherits="InsuranceVehicle.AdminSite.ClaimReport" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<%@ Register Src="Menu.ascx" TagName="Menu" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="pageTitle" runat="server">
    Claim Report
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="menuPlace" runat="server">
    <uc1:Menu ID="Menu1" runat="server" SelectedMenu="report_claim" ShowElement="all" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="breadCrumb" runat="server">
    Claim Report
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="titleContent" runat="server">
    Claim Report
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="mainContent" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div class="contentinner">
        <%--Addvance report--%>
        <div class="row-fluid">
            <div class="span12">
                <div class="box">
                    <div class="box-head">
                        <span>Option report</span>
                    </div>
                    <div class="box-body">
                        <center>
                            <table style="width: 80%; margin: auto">
                                <tr style="padding: 20px">
                                    <td align="center">
                                        <b>From</b><br />
                                        <telerik:RadDatePicker ID="chooseStartDate" runat="server" Culture="en-US" Height="30px"
                                            Skin="Metro" Width="230px">
                                            <Calendar UseRowHeadersAsSelectors="False" runat="server" UseColumnHeadersAsSelectors="False"
                                                Skin="Metro">
                                            </Calendar>
                                            <DateInput DisplayDateFormat="M/d/yyyy" DateFormat="M/d/yyyy" runat="server" LabelWidth="40%"
                                                Height="30px">
                                            </DateInput>
                                            <DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>
                                        </telerik:RadDatePicker>
                                    </td>
                                    <td>
                                        <b>To</b><br />
                                        <telerik:RadDatePicker ID="chooseEndDate" runat="server" Skin="Metro" Font-Size="Large"
                                            Height="30px" Width="230px">
                                            <Calendar UseRowHeadersAsSelectors="False" runat="server" UseColumnHeadersAsSelectors="False"
                                                Skin="Metro">
                                            </Calendar>
                                            <DateInput DisplayDateFormat="M/d/yyyy" runat="server" DateFormat="M/d/yyyy" LabelWidth="40%"
                                                Height="30px">
                                            </DateInput>
                                            <DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>
                                        </telerik:RadDatePicker>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center" colspan=2>
                                        <br />
                                        <asp:RadioButton ID="rdByDateOfClaim" Checked="true" runat="server" GroupName="claimReport" />By
                                        Date of claim
                                    
                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                        <asp:RadioButton ID="rdByDateOfAccident" runat="server" GroupName="claimReport" />By
                                        Date of Accident
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2" align="center">
                                        <br />
                                        <asp:Button ID="btnShow" runat="server" Text="Show Claims" class="btn btn-primary"
                                            OnClick="btnShow_Click" />
                                        &nbsp;&nbsp;
                                        <asp:Button ID="btnShowAll" class="btn" runat="server" Text="Show All Claims" OnClick="btnShowAll_Click" />
                                    </td>
                                </tr>
                            </table>
                        </center>
                    </div>
                </div>
            </div>
        </div>
        <br />
        <%--Table data--%>
        <div class="row-fluid">
            <div class="span12">
                <div class="box">
                    <div class="box-head">
                        <span>Report</span>
                    </div>
                    <div class="box-body box-body-nopadding">
                        <table class="table table-nomargin table-bordered table-striped table-hover dataTable-tools"
                            id="reportTable">
                            <thead>
                                <tr>
                                    <th>
                                        Claim ID
                                    </th>
                                    <th>
                                        Policy ID
                                    </th>
                                    <th>
                                        Customer Name
                                    </th>
                                    <th>
                                        Date of Claim
                                    </th>
                                    <th>
                                        Place of accident
                                    </th>
                                    <th>
                                        Date of accident
                                    </th>
                                </tr>
                            </thead>
                            <tbody>
                                <asp:Repeater ID="Repeater1" runat="server">
                                    <ItemTemplate>
                                        <tr>
                                            <td>
                                                <%#Eval("ClaimID")%>
                                            </td>
                                            <td>
                                                <%#Eval("PolicyID")%>
                                            </td>
                                            <td>
                                                <%#Eval("CustomerName")%>
                                                <%--<a href="tam.aspx?vehicleID=<%#Eval("VehicleID")%>" class="title">
                                                    <%# Eval("Model")%></a>--%>
                                            </td>
                                            <td>
                                                <%#Eval("ClaimDate")%>
                                            </td>
                                            <td>
                                                <%#Eval("PlaceOfAccident")%>
                                            </td>
                                            <td>
                                                <%#Eval("DateOfAccident")%>
                                            </td>
                                        </tr>
                                    </ItemTemplate>
                                </asp:Repeater>
                            </tbody>
                            <tfoot>
                                <tr>
                                    <td>
                                    </td>
                                    <td>
                                    </td>
                                    <td>
                                    </td>
                                    <td>
                                    </td>
                                    <td>
                                    </td>
                                    <td>
                                    </td>
                                </tr>
                            </tfoot>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
